package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CompOp {
    
    private int beginIndex;
    private int endIndex;
    private boolean equalsOperator;
    private boolean notEqualsOperator;
    private boolean lessThanOperator;
    private boolean greaterThanOperator;
    private boolean lessThanOrEqualsOperator;
    private boolean greaterThanOrEqualsOperator;

    public CompOp(int beginIndex,
                  int endIndex,
                  boolean equalsOperator,
                  boolean notEqualsOperator,
                  boolean lessThanOperator,
                  boolean greaterThanOperator,
                  boolean lessThanOrEqualsOperator,
                  boolean greaterThanOrEqualsOperator) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.equalsOperator = equalsOperator;
        this.notEqualsOperator = notEqualsOperator;
        this.lessThanOperator = lessThanOperator;
        this.greaterThanOperator = greaterThanOperator;
        this.lessThanOrEqualsOperator = lessThanOrEqualsOperator;
        this.greaterThanOrEqualsOperator = greaterThanOrEqualsOperator;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isEqualsOperator() {
        return equalsOperator;
    }

    public boolean isNotEqualsOperator() {
        return notEqualsOperator;
    }

    public boolean isLessThanOperator() {
        return lessThanOperator;
    }

    public boolean isGreaterThanOperator() {
        return greaterThanOperator;
    }

    public boolean isLessThanOrEqualsOperator() {
        return lessThanOrEqualsOperator;
    }

    public boolean isGreaterThanOrEqualsOperator() {
        return greaterThanOrEqualsOperator;
    }

}
